/*
 * InvalidBoatConfiguration.h
 *
 *  Created on: Jun 21, 2009
 *      Author: computer
 */

#ifndef INVALIDBOATCONFIGURATION_H_
#define INVALIDBOATCONFIGURATION_H_
#include <exception>
using namespace std;

class InvalidBoatConfiguration : public exception {
public:
	InvalidBoatConfiguration(int _max) : max(_max) { }

  virtual const char* what() const throw() {
    return "Invalid Boat Configuration";
  }

  int getMax() const { return max; }
private:
	int max;
};

#endif /* INVALIDBOATCONFIGURATION_H_ */
